const head = require('./configs/head')
const navbar = require('./configs/navbar')
const sidebar = require('./configs/sidebar')

module.exports = {
    base: '/justnote/',
    title: 'Justnote',
    lang: 'zh-CN',
    description: '个人笔记和收藏夹: 前端技术和其它',
    head,
    themeConfig: {
        logo: '/logo.png',
        repo: 'https://gitee.com/justorez/justnote',
        docsRepo: 'https://gitee.com/justorez/justnote',
        docsBranch: 'master/docs',
        editLinks: true,
        editLinkText: '为此页提供修改建议',
        navbar,
        sidebar
    },
    plugins: [
        [
            '@vuepress/plugin-search',
            {
                // 排除首页
                isSearchable: (page) => page.path !== '/'
            }
        ]
    ]
}
